package com.woniu.shop.service;

import com.woniu.entity.PageResult;
import com.woniu.shop.entity.dto.ListShopAppraiseDTO;
import com.woniu.shop.entity.dto.ShopAppraiseDTO;
import com.woniu.shop.pojo.ShopAppraise;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.shop.pojo.ShopAppraise;
import com.woniu.shop.pojo.vo.ShopAuditVo;

/**
 * <p>
 * 门店评价表 服务类
 * </p>
 *
 * @author LiFangyu
 * @since 2023-02-15
 */
public interface IShopAppraiseService extends IService<ShopAppraise> {


    ShopAuditVo queryAudit(int id);
    /**
     *
     * @param currentPage 当前页
     * @param pageSize 页大小
     * @param listShopAppraiseDTO 评价星级
     * @return 分页对象
     */
    PageResult<ShopAppraise> listShopAppraise(Integer currentPage, Integer pageSize, ListShopAppraiseDTO listShopAppraiseDTO);

    /**
     *
     * @param id 评价的id
     * @return true:回复成功|false:回复失败
     */
    boolean reply(Integer id, String replyContent);

    /**
     *
     * @param shopAppraiseDTO 用户评价的信息
     * @return true:评价成功|false:评价失败
     */
    boolean userAppraiseTheShop(ShopAppraiseDTO shopAppraiseDTO);

}
